#include "bits/stdc++.h"
using namespace std;
int main(){
    string a;
    cin >> a;
    int len = a.size();
    reverse(a.begin(), a.end());
    cout << a;
}